updated isValidMove to start looking at step moves