Chapter 09: Implementation of Snake game