Adding final code to make game work - game works - needs bug testing