Checking collision by player and enemy