Created the physic collision fun and changed the getBlock fun (buggy)