added collision detection and life and point counters