Depth Search checked to end of game

Game is printed but game then throws a null pointer exception needs
terminating clause