A simple implementation of the classic game.