Refactored and rewriten ComputerPlayer AI