randompiece() added