Updated the game prototype with draw and update function