Included missing library functions which caused battle viewing to fail