Text this: Controlling B-Spline Snake Behavior Using Particle Swarm Optimization