Improved engine for singleplayer-mode (first checking if pc can win) and solved try-catch problem in Main class