Exercises from the Beginning Game Programming book