refactor

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
don't add new tile if nothing moved

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
fix is_lost

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
fix build with clang

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>