Important Array Leetcode Problems Javascript Snake Game