Added collision detecting between the snake and screen walls.