Tile exist function added
Fix some minor errors!

Signed-off-by: eldr4d <nikofinas@gmail.com>