If this is the 54 gallon you list in your sig, then yes, it's time for a much larger tank, or give it to a fellow hobbyist with a suitable system. You don't say how large the fish is but this behavior is indicative of their need for lots of lateral swimming room. My sense is the fish is cramped and it will eventually have problems associated with confinement stress.