fixed a mistake when checking the validity, and now the snake is way smarter! also adjusted default rendering