implemented moving to coordinates