improve ai player and test coverage