First working prototype. Have to improve horizontal collision check, rotation checks.