Update greedy.cpp

updated diagonalcheck to include looking for enemy king