Finished testing for valid moves