preparation for collision detection
added tile class for basic collision detection