finish maze maker but has a bug