Made PieceSet be used a little better and used more constants and
arrays.
Fixed problems with recognizing and executing ep.
Added static keyword.
Fixed a bug in the move generation.