Make player class handle collision of trap