fixed collision detection problem. only character.java implements
collisionListener