Default [Q] Accelerometer fix on galaxy ace 2

Help I have a samsung galaxy ace2 but when I play asphalt 8 or nfs my car goes always left I tried some apps on the play store and I tried to go to setting display but there is no calibration option what can I do ???????? But i think it is an accelerometer problem.I also did factory reset and flash a new rom but nothing works help me pleas.