somebody gonna hate me for sure, but i have edited this with ai for some part because i had no idea how to implement if else statement in this code... lmao