A basic implementation to calculate the MAL by displaying each step and then printing the graph using pygame