Fixed bug in map rendering (wrap round player)