Refactor into ComputerPlayer.js