Implement click function for pieces (Not Working yet)