implemented x movement