Linear Equation In One Variable Snake Game