adding logic to move map on moving to edge of screen