Game logic fixed

Now generates correct numbers. 0 cannot be first and duplicates are not
allowed. Also implemented the same check for player input.