separated the input handling for hero
tile collision working