Got rectangular collision detection working... BUT CODE IS A HORRIBLE MESS