Creating a snake with modules and RequireJS