added areSamePlayers() function

Signed-off-by: Hugo ThePooN Denizart <thepoon@cartooncraft.fr>