got the main functionality of the third balance game