Fixed some errors in the valid move checker