So I came up with this code but I really got no idea what part is messing it up. Spent over a day with several breaks tryna crack it but can't.