Worked on this with Li-Hsuan and added minimax so you can play against the computer.