// File: Teris45[P]Maze-Game/Engine.cpp
// Function: Engine::makeMove()
void Engine :: makeMove(){
    Point old_point = traalinakos.getPoint();
    Point new_point = MyMoving :: Move(traalinakos,poterakos,maze);
    traalinakos.setPoint(new_point.getX(),new_point.getY());
    maze[old_point.getY()][old_point.getX()] = DIADROMOS;
    if(maze[new_point.getY()][new_point.getX()] == POTERAKOS) {
        poterAlive = false;
    }
    maze[new_point.getY()][new_point.getX()] = TRAALINAKOS;

    Point old_point_goblin = goblinakos.getPoint();
    Point new_point_goblin = MyMoving :: Move(goblinakos,poterakos,maze);
    goblinakos.setPoint(new_point_goblin.getX(),new_point_goblin.getY());
    maze[old_point_goblin.getY()][old_point_goblin.getX()] = DIADROMOS;
    if(maze[new_point_goblin.getY()][new_point_goblin.getX()] == POTERAKOS) {
        poterAlive = false;
    }
    maze[new_point_goblin.getY()][new_point_goblin.getX()] = GOBLINAKOS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x78(%rbp)
addq $0x68, %rsi
movq %rsi, -0x88(%rbp)
leaq -0x18(%rbp), %rdi
callq 0xa840
movq -0x88(%rbp), %rsi
leaq -0x40(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x5870
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rcx
movq %rcx, %rdx
addq $0x38, %rdx
leaq -0x28(%rbp), %rdi
callq 0xb140
jmp 0x3a49
leaq -0x40(%rbp), %rdi
callq 0xab00
movq -0x78(%rbp), %rax
addq $0x68, %rax
movq %rax, -0x98(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa570
movl %eax, -0x8c(%rbp)
jmp 0x3a72
leaq -0x28(%rbp), %rdi
callq 0xa5b0
movl %eax, -0x9c(%rbp)
jmp 0x3a83
movl -0x9c(%rbp), %edx
movl -0x8c(%rbp), %esi
movq -0x98(%rbp), %rdi
callq 0xa5d0
jmp 0x3a9d
movq -0x78(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq -0x18(%rbp), %rdi
callq 0xa5b0
movl %eax, -0xa0(%rbp)
jmp 0x3ab9
movq -0xa8(%rbp), %rdi
movl -0xa0(%rbp), %eax
movslq %eax, %rsi
callq 0x58b0
movq %rax, -0xb8(%rbp)
leaq -0x18(%rbp), %rdi
callq 0xa570
movl %eax, -0xac(%rbp)
jmp 0x3ae6
movq -0xb8(%rbp), %rdi
movl -0xac(%rbp), %eax
movslq %eax, %rsi
callq 0x58d0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movl $0x2, (%rcx)
movq %rax, -0xc8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa5b0
movl %eax, -0xbc(%rbp)
jmp 0x3b20
movq -0xc8(%rbp), %rdi
movl -0xbc(%rbp), %eax
movslq %eax, %rsi
callq 0x58b0
movq %rax, -0xd8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa570
movl %eax, -0xcc(%rbp)
jmp 0x3b4d
movq -0xd8(%rbp), %rdi
movl -0xcc(%rbp), %eax
movslq %eax, %rsi
callq 0x58d0
cmpl $0x3, (%rax)
jne 0x3b9f
movq -0x78(%rbp), %rax
movb $0x0, 0x19c(%rax)
jmp 0x3b9f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xab00
jmp 0x3e23
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x3e1a
movq -0x78(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa5b0
movl %eax, -0xdc(%rbp)
jmp 0x3bbb
movq -0xe8(%rbp), %rdi
movl -0xdc(%rbp), %eax
movslq %eax, %rsi
callq 0x58b0
movq %rax, -0xf8(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xa570
movl %eax, -0xec(%rbp)
jmp 0x3be8
movq -0xf8(%rbp), %rdi
movl -0xec(%rbp), %eax
movslq %eax, %rsi
callq 0x58d0
movq -0x78(%rbp), %rsi
movl $0x5, (%rax)
addq $0x50, %rsi
leaq -0x60(%rbp), %rdi
callq 0xa840
jmp 0x3c16
movq -0x78(%rbp), %rcx
movq %rcx, %rsi
addq $0x50, %rsi
movq %rcx, %rdx
addq $0x38, %rdx
leaq -0x70(%rbp), %rdi
callq 0xb8f0
jmp 0x3c33
movq -0x78(%rbp), %rax
addq $0x50, %rax
movq %rax, -0x108(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa570
movl %eax, -0xfc(%rbp)
jmp 0x3c53
leaq -0x70(%rbp), %rdi
callq 0xa5b0
movl %eax, -0x10c(%rbp)
jmp 0x3c64
movl -0x10c(%rbp), %edx
movl -0xfc(%rbp), %esi
movq -0x108(%rbp), %rdi
callq 0xa5d0
jmp 0x3c7e
movq -0x78(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xa5b0
movl %eax, -0x110(%rbp)
jmp 0x3c9a
movq -0x118(%rbp), %rdi
movl -0x110(%rbp), %eax
movslq %eax, %rsi
callq 0x58b0
movq %rax, -0x128(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xa570
movl %eax, -0x11c(%rbp)
jmp 0x3cc7
movq -0x128(%rbp), %rdi
movl -0x11c(%rbp), %eax
movslq %eax, %rsi
callq 0x58d0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movl $0x2, (%rcx)
movq %rax, -0x138(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa5b0
movl %eax, -0x12c(%rbp)
jmp 0x3d01
movq -0x138(%rbp), %rdi
movl -0x12c(%rbp), %eax
movslq %eax, %rsi
callq 0x58b0
movq %rax, -0x148(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa570
movl %eax, -0x13c(%rbp)
jmp 0x3d2e
movq -0x148(%rbp), %rdi
movl -0x13c(%rbp), %eax
movslq %eax, %rsi
callq 0x58d0
cmpl $0x3, (%rax)
jne 0x3d80
movq -0x78(%rbp), %rax
movb $0x0, 0x19c(%rax)
jmp 0x3d80
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x3e11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa900
jmp 0x3e11
movq -0x78(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa5b0
movl %eax, -0x14c(%rbp)
jmp 0x3d9c
movq -0x158(%rbp), %rdi
movl -0x14c(%rbp), %eax
movslq %eax, %rsi
callq 0x58b0
movq %rax, -0x168(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xa570
movl %eax, -0x15c(%rbp)
jmp 0x3dc9
movq -0x168(%rbp), %rdi
movl -0x15c(%rbp), %eax
movslq %eax, %rsi
callq 0x58d0
movl $0x4, (%rax)
leaq -0x70(%rbp), %rdi
callq 0xa900
leaq -0x60(%rbp), %rdi
callq 0xa900
leaq -0x28(%rbp), %rdi
callq 0xa900
leaq -0x18(%rbp), %rdi
callq 0xa900
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
leaq -0x60(%rbp), %rdi
callq 0xa900
leaq -0x28(%rbp), %rdi
callq 0xa900
leaq -0x18(%rbp), %rdi
callq 0xa900
movq -0x48(%rbp), %rdi
callq 0x3430
nopw %cs:(%rax,%rax)