fixed printings bugs

now it prints the user's move and get the correct heap number