Split game code up into layers.