collision detection with walls... Planning on changing the algorithm altogether