Added gaming logic. Game loop, framerate control, etc. Thanks to Mojang.