Simple collision detection implemented. Event classes added.