Switched position to object literal
Convert balldX and balldY to object literal