Javascript Push Array Elements Python Snake Information