Snake edge detection is being coded, while including a lot of bugs