this came out slightly better. but I haven't had time to do much lately, sorry also chess again
original coding belongs to yunnie