Somehow no matter what I do there is an error. This is my code:
you should add in
It make sure to do it correctly
You have defined friend as an array of friends. Then, when you define x, it is a list and cannot be a specific x position.