functions moved to Snake class. Still needs testing
fixed problem in movement, but still very slow
added movement control with keys. Does not work yet