the problem was you were passing `Agent` rather than `player` (Which is an instance of `Agent`, not the class itself) into the game.