add check end game & dynamic array creation