tested function creategame