Create GameLogic.c

This is the part of the 2048 game too.