fix buttons' place in main-window
simplify getCurrentDyingPlayer