Fixed errors so TestPlayer2 runs. Basic functionality but not a very good agent yet.