added basic game loop and drawing