Added collide method to Player.java