Added tile drawing and moved code to game core.