Restrict character movement within tiledmap