Java implementation of millionaire game