tested the collision algorithm on a wall piece, did some minor adjustments, collision detection seems to be working fine now