alot simplified code for mobs/player movement on map and made it more exact