Added collision checking and basic gravity (glitchy).