converted to not use pygame anymore