Implementation of game