Make generic function collision of player with something
Simplified function collision generic with something
Reduced code functions and remove some code