collision working, for enemies and player