Implements switching between pieces