Started implementing class for collision detection