Server to check for valid position before moving

prevent player form going out of bounds