Lego.py now calculating bias correctly