changed X and Y in Main()