Fixed NullPointerException in EffectHandler and the bug where players got wrong playerIds