fix xpos bug
Merge branch 'master' of https://github.com/yulisunny/ECE243_Project