fixed the bug on coin. y means the center