Code style change and a small fix

Fixed selecting to give hook to a player that left in the meantime.