Test for invalid moves