Created matrix class to handle scene tiles