Implementing the game Ghost