Game now checks if you win or not

-Added OnLoop function which will check if you win or not, which
 shows a basic debug message.
-Changed OnRender's for loop arguments from hardcoded value 9 to
 the size of the unit_list.