moving Snake in a separate class