Added compile script
Repackaged and refactored Piece types