Fix "Invalid move! Player: undefined" bug