Changed x and y coords to doubles to have variable speeds