Modified Gameobject to store x,y width and height
Modified Collision detection