Added "setHasMoved(true)" if move is made successfully