First of all.
This code there is garbage. Why you people, making books shows such bad example like full game implemented in one class? What is that!? How should anyone know how to code, when they see no examples of cleancode. Yea, I get it, this book is not about clean code, but understand that, cause I did it myself in past, I read I watch I do. So first year in my job was horrible, cause I did not understand how to properly code. That's a bad example. That's a huge minus for this book, cause I hate when author could not make it with better solution. Gratz on using Intellij, but your code James is terrible. And I believe, in work you work better, so show other people how to do it. I code in Java for almost 4 years, not so much, but still know some things. In Unity I'm making game in home for a little more than a year. I believe this book is for people even with less experience. And I was lost sometimes between lines of code in book, cause Snake game class has almost 400 lines. Shame shame shame. It's published bad example :( I will recommend that book to no one, me myself wanted to check for some patterns in Libgdx, cause wanted to check it out after Unity, but I believe that was not a good book to picked up to learn so.