Added inline documentation, encapsulated Game, updated AI