End of Wed's lesson

Checks snap condition. Still gets some array index out of bounds errors.