Fixed orientation problem

Added code for measuring main loop + some minor tweaks
Added set counting and game finished check
Updated text updater function