A simple snake game practicing OOP and pure JS