private boolean checkCommand(){
		try{
			CommandScanner commandscanner = new CommandScanner(StockGameCommandType.values(), descriptor);
			commandscanner.checkCommandSyntax(shellreader);
			return true;
			}catch(WrongCommandException e){
				shellwriter.println("Invalid Command");
				shellwriter.flush();
				return false;
			}catch (IOException e) {
				shellwriter.println("IO Exception failure !");
				shellwriter.flush();
				return false;
			}
	}