changed collision logic in hero.cpp