@RequestMapping(value = "/", method = RequestMethod.GET)
    public String getFields(@PathVariable int idGame, ModelMap model) {
        Game game = gameService.getGameById(idGame);
        if ( !game.isCompleted() &&
             ((game.getFirstLogin().equals(SecurityContextHolder.getContext().getAuthentication().getName()) &&
                game.getMove() == 1) ||
             (game.getSecondLogin().equals(SecurityContextHolder.getContext().getAuthentication().getName()) &&
                game.getMove() == 2))) {
            model.put("idGame", idGame);
            ShotForm shotForm = new ShotForm();
            model.put("shotForm", shotForm);
            return "gamePages/fieldsForGame/shot";
        } else {
            model.put("move", 0);
            return "gamePages/fieldsForGame/game";
        }
    }