added bitmap collision detection