refactored input code for tilelayer, added tile sound, fixed cloning behaviour