function fillArray(name, number, playerAnim)
{
for (let i = 1 ; i <= number ; i++) {
playerAnim[i-1] = "pics/" + name + i + ".png";
}