added calls to keyboardlistener.setpiece()