Game logic class