public void addAction(UndoableAction action) {
		if (pos < QUEUE_SIZE) {
			undoQueue[pos++] = action;
			
			for (int i = pos; i < QUEUE_SIZE; i++)
				undoQueue[i] = null;
		} else {
			UndoableAction[] tempQueue = new UndoableAction[QUEUE_SIZE];
			System.arraycopy(undoQueue, 1, tempQueue, 0, QUEUE_SIZE - 1);
			
			undoQueue = tempQueue;
			
			undoQueue[pos - 1] = action;
		}
	}