test move method and added a check for negative input coordinates