Added some buggy collision handling, needs to be redone for sure.