Added check to see that move is valid