added player and trap functionality in tile