Remade player, detector now works with the corners of player