added trigger box to the player to detect obstacles. however the trigger box only work sometimes (which is weird and i am trying to fix)