Added map code and some game loop code