Basic code structure for a game