added collide.java