public void OnPostMove(int fieldY, int fieldX, int squareY, int squareX) { superField = HttpContext.Session.Get <SuperField>(SuperFieldKey); if (superField != null) { if (superFieldService.IsMovePossible(superField, fieldY, fieldX, squareY, squareX)) { superFieldService.DoMove(superField, fieldY, fieldX, squareY, squareX); botService.DoMove(superField, bot); HttpContext.Session.Set <SuperField>(SuperFieldKey, superField); } score = superFieldEvalutionService.EvaluateSuperField(superField, bot); } else { errorMessage = "Can't find superField"; } }