Rectangle line collision system done. Raycasting for wall detection is next.