Added a cast from boolean to int
Merge remote-tracking branch 'origin/Semi-final' into Semi-final