Do not move out of boundary