Cleaned up code for test array animation