added buy/sell validation, surrender option and redirects