added code to verify map coords when moving