Fixed wincalculator, implemented method for AI