fucntioning weking game of protoype