Create gamecode.c

The full code of the game. Please note that the code is given "AS IS" and I won't be responsible for any kind of damage or loss you might experience.