Add unit test and integrate the sqlite to this game