Update Greg.cs

updated to allow getlegalmoves.  Solves problem with pawns exposing king