player motion with swipe and mouse and keyboard is implemented.