Updated Polyomino constructor.

Fixed syntax error in variable declarations. Cleaned up code. Also the pivot property is now included in the serialization function.