snake framework

added more code to snake, still unplayable