added gamefunction.c to project (was somehow not included in the previous commit)