Added all the game logic

All the logic has been added, and human players can now place pieces