@RequestMapping(value = "/game/mygames/continued/{idGame}", method = RequestMethod.POST)
    public String fillFieldForGame(@PathVariable int idGame, TableForm tableForm, ModelMap model) {
        try {
            Game game = gameService.getGameById(idGame);
            if (game.getFirstLogin().equals(SecurityContextHolder.getContext().getAuthentication().getName())) {
                int idField = game.getIdFirstField();
                fieldService.setShips(idField, tableForm.toString());
            } else {
                if (game.getSecondLogin().equals(SecurityContextHolder.getContext().getAuthentication().getName())) {
                    int idField = game.getIdSecondField();
                    fieldService.setShips(idField, tableForm.toString());
                } else {
                    throw new Exception("Can't find user");
                }
            }
        } catch (Exception e) {
            logger.info("Error = " + e.toString());
            return "error";
        }
        return "gamePages/fieldsForGame/successfulFillingField";
    }