client side and server update

client: added the giveup functionality
server: added the giveup ability