randomize function added
complete v1 game