}
if (players.get(whosTurn).isMrX()) {
mrX.move();
mrXMoves.add(move);
if (mrXMoves.isEmpty() || mrXMoves.size() == 5 || mrXMoves.size() == 10 || mrXMoves.size() == 15 || mrXMoves.size() == 21) {
final ReverseAJAXCall call = new ReverseAJAXCall();
call.createFilteredFunctionCall("/Software_Engineering_C/Resources/JavaServerPages/ingame.jsp", "Game", creatorEmail, "slideOutAlert", "Mr. X will show himself in 3 turns!");
}
if (mrXMoves.size() == 1 || mrXMoves.size() == 6 || mrXMoves.size() == 11 || mrXMoves.size() == 16 || mrXMoves.size() == 22) {
final ReverseAJAXCall call = new ReverseAJAXCall();
call.createFilteredFunctionCall("/Software_Engineering_C/Resources/JavaServerPages/ingame.jsp", "Game", creatorEmail, "slideOutAlert", "Mr. X will show himself in 2 turns!");
}
if (mrXMoves.size() == 2 || mrXMoves.size() == 7 || mrXMoves.size() == 12 || mrXMoves.size() == 17 || mrXMoves.size() == 23) {
final ReverseAJAXCall call = new ReverseAJAXCall();
call.createFilteredFunctionCall("/Software_Engineering_C/Resources/JavaServerPages/ingame.jsp", "Game", creatorEmail, "slideOutAlert", "Mr. X will show himself in 1 turn!");
}
if (mrXMoves.size() == 3 || mrXMoves.size() == 8 || mrXMoves.size() == 13 || mrXMoves.size() == 18 || mrXMoves.size() == 24) {
final ReverseAJAXCall call = new ReverseAJAXCall();
call.createFilteredFunctionCall("/Software_Engineering_C/Resources/JavaServerPages/ingame.jsp", "Game", creatorEmail, "slideOutAlert", "Mr. X has been spotted!");
}
if (mrXMoves.size() == 4 || mrXMoves.size() == 9 || mrXMoves.size() == 14 || mrXMoves.size() == 20) {
final ReverseAJAXCall call = new ReverseAJAXCall();
call.createFilteredFunctionCall("/Software_Engineering_C/Resources/JavaServerPages/ingame.jsp", "Game", creatorEmail, "slideOutAlert", "Mr. X will show himself in 4 turns!");
}
if (mrXMoves.size() == 19) {
final ReverseAJAXCall call = new ReverseAJAXCall();
call.createFilteredFunctionCall("/Software_Engineering_C/Resources/JavaServerPages/ingame.jsp", "Game", creatorEmail, "slideOutAlert", "Mr. X will show himself in 5 turns!");
}
}
determineWhosTurnItIsNext();
}
}