fixed nullPointer when player loses

added debug print of leftovers