Fixed bug where CPU does not take turn