[Demonstration 1]

[Buggy Method]
private void handleRotatePress() {
    if (rotateResponds) {
        game.getCurrentTile().rotateTile();
        updateCurrentTileLabel();
    }
}

[Buggy Hunk]
if(rotateResponds) {

[Patch]
if(game.canAdjustTile()) {

[Demonstration 2]

[Buggy Method]
@Override
public void takeTurn() {
    State currentState = game.getCurrentState();
    State newState = new State();
    String[] possibleStates = Brain.getPossibleStates(currentState.getRows());
    for (String stateKey : possibleStates) {
        State possibleState = Brain.getState(stateKey);
        if (possibleState.getAverage() > newState.getAverage()) {
            newState = possibleState;
        }
    }
    if (!newState.equals(new State())) {
        game.setCurrentState(newState);
        view.displayMessage(name + " has set the game state to " + newState.getKey());
    }
}

[Buggy Hunk]
if (possibleState.getAverage() > newState.getAverage()){

[Patch]
if (possibleState.getAverage() >= newState.getAverage()){

[Demonstration 3]

[Buggy Method]
@JsonProperty(PostFieldNames.NAME)
public List<String> getTags() {
    return tags;
}

[Buggy Hunk]
public List<String> getTags() {

[Patch]
public Set<String> getTags() {