implemented collision detection of simple sprites