Android studio Project is testing of a line game for performance of memory and power. 200 instances for each 'n' number of lines should be saved to file (could be internal or external memory) and retrieved from the file. An average of 200 instances will give the power, memory, time taken for each 'n'. For large 'n' s the app freezes and says not responding. Currently the code is using tinydb, sqlitedb to save coordinates for each line and it outputs a file with the coordinates of all the instances. new file is generated for every 'n'