Bug fix (wrong variable used for current player).