added all logic to game, computer plays as second player now. must add a tree data structure for the computer to look ahead more than one move