added some collision detection functions
added block obj