Main change: fixed predicted period because L is only half the size of the square