You mission is to collect all the gold! You can only make straight moves so you should plan out each movement since you don't have complete freedom to move. Your friend, the red ball will help you out.
How to play to Gold Moti
Use the direction keys to move around and the space bar to merge the yellow ball with the red one.