This is not online multiplayer it is only for two people and there are no bots. If a piece is dead drag it into the trash. Press space if somebody won. You have to drag the pieces.
All code by me, including the tile engines. If you have any recommendations then tell me in the comments.