Removes unnecessary game loop code