created method for creating deck