created Snake class and move method