Removed testing for valid moves, implemented move function