fixed the coordinate system and added the function CreateCoins()