Added computer player functionality, fixed some bugs