Implemented a huge amount of functions for playfield functionality

Playfield is now capable of detecting clears, handling gravity, taking pieces into the playfield, etc.