refactor numbergame