still not working properly

the array part is messed up,