add function to create a game matrix