Avoid moving out of board