game code and library