Some game loop functionality partially implemented; mostly broken