refactored and added a mock AI player