Made some refactorings and added sidewards movement directions