made it more worky than before. collision handling added.