dodane random game algorithm