player.detectCollisions modified

not working with multiple players